package top.dotgo.model.sys;

import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import top.dotgo.model.IBaseEntity;

import javax.persistence.*;

/**
 * 账号表(SysAccount)实体类
 *
 * @author jornl
 * @date 2020-05-21 00:03:49
 */
@Entity
@Data
@Accessors(chain = true)
@Table(name = "sys_account")
public class SysAccountEntity implements IBaseEntity, Serializable {
       /**
     * 账号主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "custom-id")
    @GenericGenerator(name = "custom-id", strategy = "top.dotgo.model.kit.CustomIDGenerator")
     @Column(name = "acc_id")
     private Long accId;
    
    /**
     * 手机号
     */
     @Column(name = "mobile")
     private String mobile;
    
    /**
     * 用户名
     */
     @Column(name = "user_name")
     private String userName;
    
    /**
     * 密码
     */
     @Column(name = "password")
     private String password;
    
    /**
     * 昵称
     */
     @Column(name = "nick_name")
     private String nickName;
    
    /**
     * 用户真实姓名
     */
     @Column(name = "real_name")
     private String realName;
    
    /**
     * 注册时间
     */
     @Column(name = "reg_time")
     private Date regTime;
    
    /**
     * 最后登陆时间
     */
     @Column(name = "last_time")
     private Date lastTime;
    
    /**
     * 登陆次数
     */
     @Column(name = "login_count")
     private Integer loginCount;
    
    /**
     * 微信的 openID
     */
     @Column(name = "wx_open_id")
     private String wxOpenId;
    
    /**
     * 账号类型：0平台管理，1平台员工，2客户管理员，3客户员工，4一般用户
     */
     @Column(name = "acc_type")
     private Integer accType;
    
    
     @Column(name = "create_by")
     private Long createBy;
    
    
     @Column(name = "create_time")
     private Date createTime;
    
    
     @Column(name = "edit_by")
     private Long editBy;
    
    
     @Column(name = "edit_time")
     private Date editTime;
    
    
     @Column(name = "del_by")
     private Long delBy;
    
    
     @Column(name = "del_time")
     private Date delTime;
    
    /**
     * 用户状态：0禁用，1正常
     */
     @Column(name = "status")
     private Integer status;
    


}